package com.zxm.springcloud.service.impl;

import com.zxm.springcloud.entities.CommonResult;
import com.zxm.springcloud.entities.PayMent;
import com.zxm.springcloud.service.PaymentService;
import org.springframework.stereotype.Component;

@Component
public class PaymentServiceImpl implements PaymentService {
    @Override
    public CommonResult<PayMent> paymentSQL(Long id) {
        return new CommonResult<>(444, "服务降级返回，---PaymentServiceImpl", new PayMent(id, "errorSerial"));
    }

    @Override
    public String getPayment(Integer id) {
        return "服务降级返回，---PaymentServiceImpl";
    }
}
